-- GENERATED SPELL FOR [Apothecary Zelana] --


function spell0_21257(pUnit, Event) --@Set Rails Flag,n/a--
pUnit:FullCastSpellOnTarget(35998,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21257', 642, 1)
end

function Sorts_21257(pUnit, Event)
local choix_sorts_21257 = math.random(0, 0)
if choix_sorts_21257 == 0 then
pUnit:RegisterEvent('spell0_21257', 1, 1)
end
end

function mob21257_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21257', math.random(1500, 3000), 1)
end

function mob21257_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21257_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21257_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21257, 1, 'mob21257_Action')
RegisterUnitEvent(21257, 2, 'mob21257_Leave')
RegisterUnitEvent(21257, 3, 'mob21257_Kill')
RegisterUnitEvent(21257, 4, 'mob21257_Die')
